package com.ruoyi.project.mgcmanage.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class Supplier extends BaseEntity {
    private Integer sid ;
    private String supplierName;
    private String supplierPeople;
    private String supplierPhone;
    private String supplierBankId;
    private String supplierAddress;
    private int status;

    public Supplier() {
    }

    public Supplier(Integer sid, String supplierName, String supplierPeople, String supplierPhone, String supplierBankId, String supplierAddress, int status) {
        this.sid = sid;
        this.supplierName = supplierName;
        this.supplierPeople = supplierPeople;
        this.supplierPhone = supplierPhone;
        this.supplierBankId = supplierBankId;
        this.supplierAddress = supplierAddress;
        this.status = status;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierPeople() {
        return supplierPeople;
    }

    public void setSupplierPeople(String supplierPeople) {
        this.supplierPeople = supplierPeople;
    }

    public String getSupplierPhone() {
        return supplierPhone;
    }

    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = supplierPhone;
    }

    public String getSupplierBankId() {
        return supplierBankId;
    }

    public void setSupplierBankId(String supplierBankId) {
        this.supplierBankId = supplierBankId;
    }

    public String getSupplierAddress() {
        return supplierAddress;
    }

    public void setSupplierAddress(String supplierAddress) {
        this.supplierAddress = supplierAddress;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Supplier supplier = (Supplier) o;
        return sid == supplier.sid &&
                status == supplier.status &&
                Objects.equals(supplierName, supplier.supplierName) &&
                Objects.equals(supplierPeople, supplier.supplierPeople) &&
                Objects.equals(supplierPhone, supplier.supplierPhone) &&
                Objects.equals(supplierBankId, supplier.supplierBankId) &&
                Objects.equals(supplierAddress, supplier.supplierAddress);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sid, supplierName, supplierPeople, supplierPhone, supplierBankId, supplierAddress, status);
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "sid=" + sid +
                ", supplierName='" + supplierName + '\'' +
                ", supplierPeople='" + supplierPeople + '\'' +
                ", supplierPhone='" + supplierPhone + '\'' +
                ", supplierBankId='" + supplierBankId + '\'' +
                ", supplierAddress='" + supplierAddress + '\'' +
                ", status=" + status +
                '}';
    }
}
